<?php

//define('END_ROOT','../../');

header("Content-type: text/json; charset=utf-8");
include_once('lib/functions.php');

session_start();

if (NEED_CHECK_LOGIN !== false && !check_login())
{
	exit_error(array('login'=>false));
}

define('END_ROOT',$_SESSION['user']['root']);
$path = END_ROOT.$_POST['path'];
